<?php

namespace SixShop\Lakala\Enum;

enum ProfitShareOrderCMDTypeEnum:string
{
    case SEPARATE = 'SEPARATE';
    case CANCEL = 'CANCEL';
    case FALLBACK = 'FALLBACK';

    public function toString()
    {
        return match ($this) {
            self::SEPARATE => '分账',
            self::CANCEL => '分账撤销',
            self::FALLBACK => '分账回退',
        };
    }
}
